package com.oakbox.saussage;

import java.io.*;
import java.util.ArrayList;
import java.util.Vector;

/**
 * Created by me.
 * User: andrew
 * Date: 1/2/12
 * Time: 11:27 AM
 */
public class Hello {

    private static boolean myResult = false;
    private static PrintWriter pw = null;
    public static final String X = "Hello You Son Of A Gun!";
    private static final String HELLO = "test.txt";
    private static final String B_IS_TRUE = "b is true";
    private static final String HELLO_SON = "hello";

    public static void main(String[] args) {
        System.out.println(HELLO_SON);
        System.out.println(B_IS_TRUE);

        File file = new File(HELLO);
        if(file.exists()) {
            myResult = file.delete();
        }

        try {
            file.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }

        FileWriter fw = null;
        try {
            fw = new FileWriter(file);

            pw = new PrintWriter(fw);
            pw.println(X);

        } catch (IOException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }
        finally {
            if (pw != null) {
                pw.close();
            }

        }

        ArrayList a = new ArrayList();


    }
}
